<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge,chrome=1">
    <meta name="author" content="胡爱静">
    <title></title>
    <style>
       .box{
           width: 570px;
           padding: 10px;
           margin: 100px auto;
           border: 1px solid red;

       }
        ul{
            padding: 0;
            margin: 0;
            list-style:none;
            display: flex;
            flex-wrap: wrap;
        }
        li{
            border: 1px solid #333;
            margin: 5px;
            opacity: 0.5;
        }
        li img{
            width: 100px;
            height: 100px;
        }
        li:hover{
            opacity: 1;
        }
    </style>
</head>
<body>
   <div class="box">
       <ul>
           <li><img src="../img/2.jpg" alt=""></li>
           <li><img src="../img/2.jpg" alt=""></li>
           <li><img src="../img/3.jpg" alt=""></li>
           <li><img src="../img/4.jpg" alt=""></li>
           <li><img src="../img/5.jpg" alt=""></li>
           <li><img src="../img/6.jpg" alt=""></li>
           <li><img src="../img/7.jpg" alt=""></li>
           <li><img src="../img/8.jpg" alt=""></li>
           <li><img src="../img/9.jpg" alt=""></li>
           <li><img src="../img/10.jpg" alt=""></li>
       </ul>
   </div>
</body>
</html>